<template>
	<view class="content">
		<image class="bgimage" src="https://pic.imgdb.cn/item/6194da4c2ab3f51d9160804a.jpg"></image>
		<view>
			<view>
				<image class="logo" src="/static/images/LNlogo.png"></image>
			</view>

			<ul class="list">
				<li class="list-item">
					<button class="guan" @click="onguan()">管 理 教 室</button>
				</li>
				<li class="list-item">
					<button class="kao" @click="onkao()">考 勤 记 录</button>
				</li>
				<li class="list-item">
					<button class="shen" @click="onshen()">注 册 审 核 </button>
				</li>
				<li class="list-item">
					<button class="zeng" @click="onzeng()">增 加 教 室</button>
				</li>
			</ul>

		</view>

	</view>

</template>

<script>
	export default {
    onTabItemTap(e) {
       // location.reload()
			 console.log(e)
    },
		data() {
			return {
		
			};
		},
		onLoad:function(){
			this.user = uni.getStorageSync("user")
			console.log(user)
		},
		methods: {
			onguan() {
				uni.navigateTo({
					url: "/pages/classroom_management/classroom_management"
				})
			},
			onshen() {
				uni.navigateTo({
					url: "/pages/approve/approve"
				})
			},
			onkao() {
				uni.navigateTo({
					url: "../attendance/attendance"
				})
			},
			onzeng() {
				uni.navigateTo({
					url: "../addclass/addclass"
				})
			}
		}
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		z-index: 999;
	}

	.list {
		// margin-top: 75px;
		// margin-right: 90px;
		z-index: 999;
	}

	.list-item {
		list-style: none;
		margin-right: 190px;
		position: relative;
	}

	.bu {
		color: red($color: #000000);
		border-radius: 7px;
		width: 60px;
	}

	.guan,
	.kao,
	.shen,
	.zeng {
		position: absolute;
		width: 250px;
		height: 95rpx;
		background-color: #02a7ff;
		border-radius: 20rpx;
		padding: 4px;
		color: white;
		font-size: 34rpx;
		font-weight: 600;
		box-shadow: darkgray 3px 3px 5px;
		border-radius: 20rpx;
		z-index: 10;
	}

	.guan {
		margin-top: 80px;
	}

	.kao {
		margin-top: 150px;
	}

	.shen {
		margin-top: 220px;
	}

	.zeng {
		margin-top: 290px;
	}

	.bgimage {
		position: absolute;
		z-index: -1;
		width: 100%;
		height: 100%;
		opacity: 0.6;
		background-repeat: repeat-y;
		bottom: 0rpx;

	}

	.logo {
		height: 200rpx;
		margin-top: 10%;
		z-index: 100;
		opacity: 0.8;
	}
</style>
